package ooday01;

public class Car {
    String brand;
    String color;
    double price;
    int capacity;
    void start(){//          ad.brand          ad.color          ad.capacity          ad.price
        System.out.println(this.brand+"牌子的"+this.color+"色的"+this.capacity+"座的"+this.price+"块钱的车启动了...");
    }
    void run() {//           ad.brand          ad.color           ad.capacity         ad.price
        System.out.println(this.brand+"牌子的"+this.color+"色的"+this.capacity+"座的"+this.price+"块钱的车跑起来了...");
    }
    void stop(){//           ad.brand          ad.color           ad.capacity          ad.price
        System.out.println(this.brand+"牌子的"+this.color+"色的"+this.capacity+"座的"+this.price+"块钱的车停止了...");
    }
    Car(String brand,String color,double price,int capacity){
        this.brand=brand;
        this.color=color;
        this.price=price;
        this.capacity=capacity;
    }
    Car(){}
}
